home *** CD-ROM | disk | FTP | other *** search
- cls
- @if "%1"=="" goto need_directory
- @echo *********************************************************************
- @echo * *
- @echo * =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= *
- @echo * Adaptec EZ-SCSI 3.0, 3.01 to EZ-SCSI 3.02 Upgrade *
- @echo * =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= *
- @echo * *
- @echo * This program will upgrade your EZ-SCSI Software *
- @echo * (from EZ-SCSI 3.0 or EZ-SCSI 3.01) to EZ-SCSI 3.02. *
- @echo * The version of EZ-SCSI you have is printed on your *
- @echo * floppy label. *
- @echo * *
- @echo * This program will create the directory \OLDSYS where *
- @echo * the older versions of your software will be stored. *
- @echo * Consult the READMEUP.TXT file for further information *
- @echo * on this upgrade program. *
- @echo * *
- @echo *********************************************************************
- @rem pause
- @rem
- @rem ----------------------------------------------------------------------
- @rem Note: %1 = user's path for where ezscsi is installed on their drive.
- @rem We redirect the output of the upgrade procedure to the file
- @rem UPINFO.TXT.
- @rem Currently this file contains nothing more than the header for
- @rem the RTPatch program, but we can allow it to contain all of the
- @rem information regarding the upgrade procedure by rebuilding the
- @rem patch with NOMESSAGE and QUITE eliminated from the configuration
- @rem set.
- @rem -----------------------------------------------------------------------
- @echo Performing upgrade...please wait.
- @echo (This process may take from 1 to 5 minutes depending on your system.)
- @echo ...working...
- @rem
- @rem
- @rem -----------------------------------------------------------------------
- @rem PATCH.EXE and PATCH.RTP, the two files necessary to carry out the
- @rem patch program are renamed to reduce confusion for customer to *.inc.
- @rem Here is where we rename them back to their executable extensions to
- @rem allow the patch to operate. We rename them back to *.inc at the end
- @rem of this program.
- @rem -----------------------------------------------------------------------
- @rename patch1.inc patch.exe
- @rename patch2.inc patch.rtp
- @patch %1 > UPINFO.TXT
- @if ERRORLEVEL 1 goto failed_upgrade
- @rem -----------------------------------------------------------------------
- @rem Here we copy the upgrade readme file to the user's EZ-SCSI directory.
- @rem -----------------------------------------------------------------------
- @del UPINFO.TXT
- @echo Upgrade Complete!
- @echo Copying READMEUP.TXT to %1 ...
- @copy readmeup.txt %1
- @if ERRORLEVEL 1 goto failed_readme_copy
- @goto end
-
- :need_directory
- @cls
- @echo **********************************************************************
- @echo * You need to type the directory of your current EZ-SCSI installation*
- @echo * after PATCH as follows: *
- @echo * *
- @echo * UPGRADE C:\SCSI *
- @echo * *
- @echo **********************************************************************
- @pause
- @goto failed
-
- :failed_upgrade
- cls
- @echo Upgrade failed!
- @rem --------------------------------------------------------------------
- @rem Renaming patch files back to non-executable extensions
- @rem --------------------------------------------------------------------
- @rename patch.exe patch1.inc
- @rename patch.rtp patch2.inc
- @pause
- @goto failed
-
- :failed_readme_copy
- @cls
- @echo Upgrade was successful!
- @echo Unable to copy READMEUP.TXT to %1
- @rem --------------------------------------------------------------------
- @rem Renaming patch files back to non-executable extensions
- @rem --------------------------------------------------------------------
- @rename patch.exe patch1.inc
- @rename patch.rtp patch2.inc
- @goto failed
-
- :end
- @rem --------------------------------------------------------------------
- @rem Renaming patch files back to non-executable extensions
- @rem --------------------------------------------------------------------
- @rename patch.exe patch1.inc
- @rename patch.rtp patch2.inc
- @pause
- cls
-
- :failed
-
-